package com.suse.lhw.resourceservere.controller;

import com.suse.lhw.hms.foodserver.pojo.input_POJO.ModelUnitAndIfo;
import com.suse.lhw.resourceservere.POJO.output_POJO.MovementModelAndUnits;
import com.suse.lhw.resourceservere.client.foodserverClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @ProjectName: health_manage_system
 * @Package: com.suse.lhw.resourceservere.com.suse.lhw.security.controller
 * @ClassName: JumpController
 * @Description: java类作用描述
 * @Author: 李鸿炜
 * @CreateDate: 2020/5/31 15:39
 * @UpdateUser: 更新者
 * @UpdateDate: 2020/5/31 15:39
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
@Controller
@RequestMapping("/jumpto")
public class JumpController {
    @Autowired
    private foodserverClient foodserverClient;

    @RequestMapping("toLookforfood")
    public String toLookforfood(Model Model) {
        Map<String, Integer> map = new HashMap<>();
        Model.addAttribute("firstSearchData", 0);
        return "lookforfood";
    }

    @RequestMapping("toTakealookoffood")
    public String toTakelookoffood(@RequestParam int foodId) {
        return "takealookoffood";
    }

    @RequestMapping("toAddDIYMov")
    public String toAddDIYMov() {
        return "add-customize-mov";
    }

    @RequestMapping("tolookformov")
    public String toLookForMov() {
        return "lookformov";
    }

    @RequestMapping("toIndex")
    public String toIndex() {
        return "index";
    }

    @RequestMapping("toAddCustomizeFood")
    public String toAddCustomizeFood() {
        return "add-customize-food";
    }

    @RequestMapping("toPersonalCenter")
    public String toPersonalCenter() {
        return "my";
    }
}
